<template>
  <div class="info-box">
    <div class="header">
      <span class="title">{{ title }}</span>
      <div>
        <slot name="right"> </slot>
      </div>
    </div>
    <div class="body">
      <slot name="body"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
    headerTextColor: {
      type: String,
      default: "#1080F0",
    },
  },
};
</script>

<style lang="scss" scoped>
.info-box {
  background-color: #ffffff;
  border-radius: 4px;
}

.header {
  color: #333333;
  font-size: 16px;
  font-weight: 400;
  align-items: center;
  padding: 16px 0 16px 10px;
  margin: 0 16px;
  border-bottom: 1px solid #e8e8e8;
  position: relative;

  .title {
    font-size: 22px;
  }

  & > div {
    position: absolute;
    right: 0;
    top: 16px;
  }
}

.body {
  height: calc(100% - 86px);
  margin: 16px;
}
</style>
